package com.monitor.service.impl;

import com.monitor.service.TestService;
import org.apache.dubbo.config.annotation.Service;

@Service
public class TestServiceImpl implements TestService {

    @Override
    public String methodA() {

        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "methodA success";
    }

    @Override
    public String methodB() {

        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "methodB success";
    }

    @Override
    public String methodC() {

        try {
            Thread.sleep((int) (Math.random() * 100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "methodC success";
    }
}
